﻿<UserControl 
    x:Class="ibba.src.norisk.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
    xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
    xmlns:slc="clr-namespace:ibba.src.slcomponentes;assembly=ibba.src.slcomponentes"
    xmlns:local="clr-namespace:ibba.src.norisk"
    mc:Ignorable="d"
    d:DesignWidth="1024" d:DesignHeight="768">

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="80"/>
        </Grid.RowDefinitions>

        <!--Source="/PageEnquadramento"-->
        <navigation:Frame x:Name="ContentFrame" Grid.Row="0" 
                          Source="/PageDefault"
                          Navigated="ContentFrame_Navigated" 
                          Navigating="ContentFrame_Navigating"
                          NavigationFailed="ContentFrame_NavigationFailed">
            <navigation:Frame.UriMapper>
                <uriMapper:UriMapper>
                    <uriMapper:UriMapping Uri="" MappedUri="/page/PageDefault.xaml"/>
                    <uriMapper:UriMapping Uri="/{pageName}/{param}" MappedUri="/page/{pageName}.xaml?parametro={param}"/>
                    <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/page/{pageName}.xaml"/>
                </uriMapper:UriMapper>
            </navigation:Frame.UriMapper>
        </navigation:Frame>

        <slc:ControlMenuBar x:Name="barraMenu" Grid.Row="1" Height="80" VerticalAlignment="Bottom"
                            Background="{StaticResource BlueStrong}"/>
    </Grid>
</UserControl>
